package cn.hairui.blog.service.impl;

import cn.hairui.blog.model.WebInfo;
import cn.hairui.blog.repository.WebInfoRepository;
import cn.hairui.blog.service.WebInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author lihairui
 * @version V1.0
 * @date: 2019/7/28 17:40
 */
@Service(value = "webInfoService")
public class WebInfoServiceImpl implements WebInfoService {

    @Autowired
    private WebInfoRepository webInfoRepository;

    @Override
    public WebInfo find(int pk) {
        return webInfoRepository.query(pk);
    }
}
